<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>网站后台管理系统</title>
    <link rel='stylesheet' href='/stylesheets/style.css'/>
    <script src="/javascripts/jquery-1.11.0.js"></script>
    <script src="/javascripts/jquery.cookie.js"></script>
    <script src="/resources/ckeditor/ckeditor.js"></script>
    <script src="/resources/form-helper/form-helper.js"></script>
    <script src="/javascripts/moment-with-langs.js"></script>
    <script src="/resources/template.js"></script>
    <script src="/resources/scripts/index.js"></script>
    <!-- Bootstrap -->
    <link href="/resources/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="/resources/file-uploador/css/jquery.fileupload.css">
    <link href="/stylesheets/dashboard.css" rel="stylesheet">
    <link href="/resources/notify/pnotify.custom.min.css" rel="stylesheet">
    <script src="/resources/notify/pnotify.custom.min.js"></script>
    <script src="/javascripts/notify.js"></script>

    <link rel="stylesheet" href="/resources/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css">
    <script src="/resources/ztree/js/jquery.ztree.all-3.5.js"></script>
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
   <![endif]-->
    <script src="/resources/bootstrap-datepicker/js/bootstrap-datepicker.js" charset="UTF-8"></script>
    <script src="/resources/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-CN.js" charset="UTF-8"></script>
    <link href="/resources/bootstrap-datepicker/css/datepicker3.css" rel="stylesheet">


    <script>
        template.openTag = "<(";
        template.closeTag = ")>";
    </script>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/admin">西部金属材料股份有限公司</a>
        </div>


        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                <li><a href="#">主页</a></li>
                <li><a href="#">设置</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><%-user['name']%> <b class="caret"></b></a>
                    <ul class="dropdown-menu" role="menu">
                        <% for(var g in gnames){%>

                        <li><a href="#"><%-gnames[g]%></a></li>
                        <%}%>
                    </ul>
                </li>

                <li><a href="/logout">退出</a></li>
            </ul>

        </div>
    </div>
</div>
<div class="container">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
            <ul class="nav nav-sidebar">
                <li><a href="/company/show">
                        <strong>

                        公司信息
                        </strong>
                    </a></li>

            </ul>
            <ul class="nav nav-sidebar">
                <li><a href="/users/list/1">用户管理</a></li>
                <li><a href="/groups/list/1">组管理</a></li>
                <li><a href="/webrest/list/1">权限管理</a></li>
                <li><a href="/articlec">文章管理</a></li>
                <li><a href="/articlec/static">固定页面</a></li>
            </ul>
            <ul class="nav nav-sidebar">
                <li><a href="/vmessage/list/1">留言管理</a></li>
            </ul>
            <ul class="nav nav-sidebar">
                <li><a href="/worklog/list/1">操作日志</a></li>
                <li><a href="/webobject/list/1">网站WEB对象</a></li>
                <li><a href="/friends/list/1">友情链接</a></li>
            </ul>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">

            <%- body %>

        </div>
    </div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">请选择并上传图片</h4>
            </div>
            <div class="modal-body">
                <input id="fileupload" type="file" name="files" data-url="/images/json" multiple>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>

            </div>
        </div>
    </div>
</div>

<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="/resources/file-uploador/js/vendor/jquery.ui.widget.js"></script>
<script src="/resources/bootstrap/js/bootstrap.min.js"></script>
<script src="/resources/file-uploador/js/jquery.iframe-transport.js"></script>
<!-- The basic File Upload plugin -->
<script src="/resources/file-uploador/js/jquery.fileupload.js"></script>
<!-- The File Upload processing plugin -->
<script src="/resources/file-uploador/js/jquery.fileupload-process.js"></script>
<script src="/resources/scripts/util.js"></script>
</body>
</html>